---
layout: default
title: Posts List 
---
<div class="row artcle_list">
  <div class="inner">
    <!-- This loops through the paginated posts -->
    {% for post in paginator.posts %}
      <div class="bm-5">
        <h1 class="orange"><a href="{{ post.url }}">{{ post.title }}</a></h1>
        <p class="author">
          <span class="date">{{ post.date | date: '%Y-%m-%d' }}</span>
        </p>
        <div class="post-content">
          {% if post.description %}
            {{ post.description }}
          {% else %}
            {{ post.content }}
          {% endif %}
        </div>
      </div>
    {% endfor %}

    {% if paginator.total_pages > 1 %}
      <div class="postnavigation">

        {% if paginator.previous_page %}
          {% if paginator.page == 2 %}
            <a class="prev left" href="/">&larr; Newer</a>
          {% else %}
            <a class="prev left" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer</a>
          {% endif %}
        {% else %}
          <span class="nope left">&larr; Newer</span>
        {% endif %}

        <span class="pages">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>

        {% if paginator.next_page %}
          <a class="next right" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older &rarr;</a>
        {% else %}
          <span class="nope right">Older &rarr;</span>
        {% endif %}

      </div>
    {% endif %}
  
  </div>
</div>